<?php 
include_once("../../../configuracion/config.php");
?>

 <?php
 
	$objAbmPublicacion = new abmPublicaciones();
	$reg = $objAbmPublicacion ->darLibrosConEditor();
//	print_object($reg);
	
	/** ['idPublicacion'] [tipo] [titulo] [anio]  [volumen] [issn]  [issbn10]  [issbn13]   [abstract]  */
?>
		
<div class="tableFilter">
               <form id="tableFilterIG" onsubmit="myTableLibro.filter(this.id); return false;">Filtros: 
					<select id="column">
		  				<option value="0">Libro</option>
						<option value="1">Titulo</option>
						<option value="2">anio</option>
						<option value="3">volumen</option>
						<option value="4">issn</option>
						<option value="5">issbn10</option>
						<option value="6">issbn13</option>
						
					</select>
					<input type="text" id="keyword" />
					<input type="submit" value="Buscar" />
					<input type="reset" value="Limpiar" />
				</form>
		  </div>
		  <table id="myTableLibro" cellpadding="0" >
		  	<thead>
		  		  <th axis="string">Libro </th>
				  <th axis="string">Titulo</th>
				   <th axis="string">A&ntilde;o</th>
				   <th axis="string">Volumen</th>
					<th axis="string">issn</th>
					<th axis="string">issbn10</th>
					<th axis="string">issbn13</th>
					<th axis="string">abstract</th>
			</thead>
			<tbody>
		
			<?php for($i=0; $i< count($reg);$i++){	?>
			
				<tr id="<?php echo $reg[$i]['idPublicacion']; ?>">
					<td ><?php echo $reg[$i]['tipo']; ?></td>
					<td ><?php echo $reg[$i]['titulo']; ?></td>
					<td ><?php echo $reg[$i]['anio']; ?></td>
					<td><?php echo $reg[$i]['volumen']; ?></td>
					<td><?php echo $reg[$i]['issn']; ?></td>
					<td><?php echo $reg[$i]['issbn10']; ?></td>
					<td><?php echo $reg[$i]['issbn13']; ?></td>
					<td><?php echo $reg[$i]['abstract']; ?></td>
					
				<?php }?>
					
				</tr>
		
			</tbody>
			<tfoot>
				<tr>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
				
				</tr>
			</tfoot>
		  </table>

		
		<script type="text/javascript">
			var myTableLibro = {};
			window.addEvent('domready', function(){
				myTableLibro = new sortableTable('myTableLibro', 
											{overCls: 'over'
										//	  onClick: function(){window.location.href='integranteProyecto_add.php?idProyecto='+this.id}
											});
			});
		</script>
